home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / networking / 285 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.9 KB

  1. Path: tribune.usask.ca!aa144
  2. From: aa144@sfn.saskatoon.sk.ca (Clark Nikolai)
  3. Newsgroups: comp.sys.amiga.networking
  4. Subject: Re: ppp0IPLocal
  5. Date: 8 Jan 1996 19:18:23 GMT
  6. Organization: Saskatoon Free-Net
  7. Message-ID: <4crqlv$39d@tribune.usask.ca>
  8. References: <4cos37$c3u@tribune.usask.ca> <4cpamc$jgl@tribune.usask.ca> <kruse.53114568@america.com>
  9. NNTP-Posting-Host: broadway.sfn.saskatoon.sk.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Holger Kruse (kruse@america.com) wrote:
  13. : > PPPReady.~}#@!}!z} }8}!}$}%\}"}&} } } } }%}&M}75}'}"}(}">%~
  14. : > 
  15. : > Then sends out these (what I guess are binary packets) in intervals. 
  16. : No, it is no such thing. Your dial script is simply waiting too long. It
  17. : is supposed to wait for the string "PPPReady" and then transfer control to
  18. : ppp. Please check your dial script.
  19.  
  20. Well I've modified my dial script and it gives a different type of log 
  21. file from PPPlog. Here is the dialscript:
  22.  
  23. ECHO OFF
  24. TIMEOUT 150000    ; Set maximum wait time (in ticks)
  25. REDIAL "BUSY"   ; Redial on busy signal
  26. DELAY 100
  27. SEND ""
  28. DELAY 50
  29. SEND "ATZ&D0"     ; Initialize the modem
  30. DELAY 20
  31. WAIT "K"        ; Wait for the OK
  32. SEND "ATDP955-1925" ; Dial
  33. DELAY 20
  34. WAIT "CT"       ; Wait for connect
  35. DELAY 50
  36. SEND ""         ; Send a CR-LF
  37. DELAY 20
  38. WAIT "ogin:"        ; Wait for Name:
  39. SEND "myuserid" ; Send your User ID
  40. DELAY 20
  41. WAIT "assword:"         ; Wait for Password:
  42. SEND "mypassword" ; Send your password
  43. WAIT "PPP Ready"
  44.  
  45. The dialscript was made by the iNTERiNSTALL v 1.51 script.
  46.  
  47. Here is the ppplog output:
  48. (After some initial stuff)
  49.  
  50. PPP 0 12:57:43:8  FSM C021 changing state from Closed to ReqSent
  51. PPP 0 12:57:43:8  FSM C021 InitRestartCntConfig
  52. PPP 0 12:57:43:8  FSM C021 SendConfigReq
  53. PPP 0 12:57:43:8  InternalSendPacket C021
  54. PPP 0 12:57:43:9  01 02 00 0A 05 06 13 21 B9 D6                     
  55. .......!9V
  56. PPP 0 12:57:43:9  Received packet
  57. PPP 0 12:57:43:9  FF 03 C0 21 01 22 00 18 01 04 05 DC 02 06 00 00  
  58. .@!.".....\....
  59. PPP 0 12:57:43:9  00 00 05 06 B5 44 A6 07 02 08 02 6A A4            
  60. ....5D&....j$
  61. PPP 0 12:57:43:9  invalid packet checksum
  62. PPP 0 12:57:43:9  ReceivedGarbage
  63. PPP 0 12:57:43:9  DoEvent 4
  64. PPP 0 12:57:44:0  Received packet
  65. PPP 0 12:57:44:0  FF 03 C0 21 07 00 00 89 0C 01 00 85 00 00 00 00  
  66. .@!............
  67. PPP 0 12:57:44:0  41 6D 69 67 61 20 50 50 50 20 56 31 2E 33 30 20   Amiga 
  68. PPP V1.30 
  69. PPP 0 12:57:44:0  28 30 34 2E 30 31 2E 39 35 29 20 36 38 30 32 30   
  70. (04.01.95) 68020
  71. PPP 0 12:57:44:0  20 65 76 61 6C 75 61 74 69 6F 6E 20 76 65 72 73    
  72. evaluation vers
  73. PPP 0 12:57:44:0  69 6F 6E 20 6F 6E 20 73 65 72 69 61 6C 2E 64 65   ion 
  74. on serial.de
  75. PPP 0 12:57:44:0  76 69 63 65 20 75 6E 69 74 20 30 20 61 74 20 33   vice 
  76. unit 0 at 3
  77. PPP 0 12:57:44:0  38 34 30 30 20 62 61 75 64 2E 20 43 6F 70 79 72   8400 
  78. baud. Copyr
  79. PPP 0 12:57:44:0  69 67 68 74 20 28 43 29 20 31 39 39 34 20 62 79   ight 
  80. (C) 1994 by
  81. PPP 0 12:57:44:0  20 48 6F 6C 67 65 72 20 4B 72 75 73 65 BE 4E       
  82. Holger Kruse>N
  83. PPP 0 12:57:44:2  FSM C021 RcvCPReject+
  84. PPP 0 12:57:44:2  Received packet
  85. PPP 0 12:57:44:2  FF 03 C0 21 02 02 00 0A 05 06 13 21 B9 D6 A1 24  
  86. .@!.......!9V!$
  87. PPP 0 12:57:44:2  Accepting local LCP configuration
  88. PPP 0 12:57:44:3  Negotiated options:  Magic=1321B9D6
  89. PPP 0 12:57:44:3  FSM C021 RcvAck
  90. PPP 0 12:57:44:3  FSM C021 changing state from ReqSent to AckRcvd
  91. PPP 0 12:57:44:3  FSM C021 InitRestartCntConfig
  92. PPP 0 12:57:46:1  Received packet
  93. PPP 0 12:57:46:2  FF 03 C0 21 01 23 00 18 01 04 05 DC 02 06 00 00  
  94. .@!.#.....\....
  95. PPP 0 12:57:46:2  00 00 05 06 B5 44 A6 07 02 08 02 A3 2D            
  96. ....5D&....#-
  97. PPP 0 12:57:46:2  invalid packet checksum
  98. PPP 0 12:57:46:2  ReceivedGarbage
  99. PPP 0 12:57:46:2  DoEvent 4
  100. PPP 0 12:57:46:9  FSM C021 Timeout+
  101. PPP 0 12:57:46:9  FSM C021 changing state from AckRcvd to ReqSent
  102. PPP 0 12:57:46:9  FSM C021 SendConfigReq
  103. PPP 0 12:57:46:9  InternalSendPacket C021
  104. PPP 0 12:57:46:9  01 03 00 0A 05 06 13 21 B9 D6                     
  105. .......!9V
  106.  
  107. And so on. It then repeats this until it times out. 
  108.  
  109. Here is one of the scripts I'm trying:
  110.  
  111. AmiTCP:bin/online devs:networks/ppp.device 0
  112. AmiTCP:AmiTCP
  113. WaitForPort AMITCP
  114. ; Configure loop-back device
  115. AmiTCP:bin/ifconfig lo0 localhost
  116. ; Configure ppp0
  117. AmiTCP:bin/ifconfig ppp0 $ppp0IPLocal $ppp0IPRemote
  118. ; Add route to this host
  119. AmiTCP:bin/route add $ppp0IPLocal localhost
  120. ; Add route to the default gateway
  121. AmiTCP:bin/route add default $ppp0IPRemote
  122. SetEnv HOSTNAME `AmiTCP:bin/hostname`
  123. Assign >NIL: TCP: EXISTS
  124. IF WARN
  125.   Mount TCP: FROM AmiTCP:devs/inet-mountlist
  126. EndIF
  127. ; Start the internet `super server'
  128. Run <NIL: >NIL: AmiTCP:bin/inetd
  129.  
  130. So what happens is I execute this script, it then dials and opens a 
  131. shell, then "CONNECT" etc. 
  132. The server asks for the login: and the script gives it, same with 
  133. password. Everythings is fine up to then. Then the server sends out "PPP 
  134. Ready" and the packets. This is where it appears something goes wrong.
  135. Is there another command that goes at the end of the dial script that 
  136. tells the PPP.device to kick in? I don't know what else to think.
  137. Hope you can help.
  138.  
  139.